package com.ogilvy.cms.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ogilvy.cms.bean.CmsPage;
import com.ogilvy.cms.dao.CmsLeftTreeDao;

@Repository
public class CmsLeftTreeDaoImpl extends CmsBaseDaoImpl<CmsPage> implements CmsLeftTreeDao{

	@SuppressWarnings("unchecked")
	public List<CmsPage> getLeftTreeList() {
		String hql = "from CmsPage t where t.cmpIsColumn='1' order by t.parentCmpId,t.cmpOrderNum,t.cmpName";
		return find(hql);
	}

}
